﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GestorSQL.Utility
{
    public static class Encryption
    {

        /// <summary>
        /// Encripta la cadena de entrada
        /// </summary>
        /// <param name="str">Cadena a encriptar</param>
        /// <returns></returns>
        public static string Encrypt(this string str)
        {
            Encrypt.Encrypt encrypt = new Encrypt.Encrypt();
            return encrypt.Encrypt(str);
        }

        /// <summary>
        /// Desencripta la cadena de entrada
        /// </summary>
        /// <param name="str">Cadena a desencriptar</param>
        /// <returns></returns>
        public static string Decrypt(this string str)
        {
            Encrypt.Encrypt encrypt = new Encrypt.Encrypt();
            return encrypt.Decrypt(str);        
        }
    }
}
